package de.yellowshoes.tedx.helper;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateHelper
    {
    SimpleDateFormat csvFormater = null;

    public DateHelper()
        {
        csvFormater = new SimpleDateFormat( "dd.MM.yy HH:mm" );
        }

    public Date parseCsvStringToDate( String dateText ) throws ParseException
        {
        Date date = null;
        if( dateText != null )
            {
            date = csvFormater.parse( dateText );
            }
        return date;
        }
    }
